package com.example.mq.mqserver.core;

import lombok.Getter;

// 枚举类不能有 setter
@Getter
public enum ExchangeType {
    DIRECT(0),
    FANOUT(1),
    TOPIC(2);

    private final int type;

    // 枚举类的构造方法只能是 private，而且默认是 private
    private ExchangeType(int type) {
        this.type = type;
    }
}
